package mate.events
{
	
	import classespinkpony.Country;
	import classespinkpony.Problem;
	import classespinkpony.Profession;
	import classespinkpony.Specialization;
	import classespinkpony.Target;
	import classespinkpony.User;
	
	import flash.events.Event;
	
	public class AdvancedSearchEvent extends Event
	{
		public static const SELECTCOUNTRY:String = "selectCountry";
		public static const INIT:String = "initAdvancedSearch";
		public static const DOADVANCEDSEARCH = "doAdvancedSearch";
		
		private var _numberParameter : Number;
		private var _stringParameter : String;
		
		/* Advanced Search fields */
		private var _name : String;
		private var _countryId : Number;
		private var _districtId : Number;
		private var _specializationId : Number;
		private var _targetId : Number;
		private var _professionId : Number;
		private var _problemId : Number;
		private var _sex : Number;
		
		

		[Bindable]
		public function get numberParameter():Number
		{
			return _numberParameter;
		}

		public function set numberParameter(value:Number):void
		{
			_numberParameter = value;
		}

		[Bindable]
		public function get stringParameter():String
		{
			return _stringParameter;
		}

		public function set stringParameter(value:String):void
		{
			_stringParameter = value;
		}

		[Bindable]
		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		[Bindable]
		public function get countryId():Number
		{
			return _countryId;
		}

		public function set countryId(value:Number):void
		{
			_countryId = value;
		}

		[Bindable]
		public function get districtId():Number
		{
			return _districtId;
		}

		public function set districtId(value:Number):void
		{
			_districtId = value;
		}

		[Bindable]
		public function get specializationId():Number
		{
			return _specializationId;
		}

		public function set specializationId(value:Number):void
		{
			_specializationId = value;
		}

		[Bindable]
		public function get targetId():Number
		{
			return _targetId;
		}

		public function set targetId(value:Number):void
		{
			_targetId = value;
		}

		[Bindable]
		public function get professionId():Number
		{
			return _professionId;
		}

		public function set professionId(value:Number):void
		{
			_professionId = value;
		}

		[Bindable]
		public function get problemId():Number
		{
			return _problemId;
		}

		public function set problemId(value:Number):void
		{
			_problemId = value;
		}

		[Bindable]
		public function get sex():Number
		{
			return _sex;
		}

		public function set sex(value:Number):void
		{
			_sex = value;
		}

		
		
		public function AdvancedSearchEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}